<template>
  <h2>子组件</h2>
</template>
<script setup lang="ts">
import { onMounted } from 'vue'
type Props = {
  wife: string;
  propValue: string;
  title?: string;
  prop: {
    address: string
  }
}
// 接收父组件传递的属性，不包括.prop、.attr修饰符修饰的属性
const props = defineProps<Props>()
onMounted(() => {
  console.log(props.wife, props.prop.address, props.propValue, props.title)
})
</script>
